package com.shujiaotong.mapper;

import com.shujiaotong.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shujiaotong.pojo.UserCard;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-10-20
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT `name` from `user` WHERE type = '老师' ")
    List<String> getTeacherName();

    @Select("SELECT `id` from `user` WHERE type = '老师' ")
    List<Long> getTeacherId();


}
